package com.zz.source.mapper;

import com.zz.source.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenglei
 * @since 2021-08-15
 */
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * @Date: 15:40 2021/8/15
     * @Param: []
     * @return: java.util.List<com.zz.source.entity.User>
     * @Description: 查询所有用户的名字的性别
     **/
   // @Select("select name,sex from user")
    List<User> findAllNameAndSex();
}
